﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpLite.Domain;
using System.ComponentModel.DataAnnotations;

namespace DAEProde.Domain
{
    public class Team : Entity
    {
        [Display(Name = "Nombre")]
        public virtual string Name { get; set; }

        // many-to-many entre equipo y torneo
        [Display(Name = "Torneos")]
        public virtual IList<Tournament> Tournaments { get; set; }

        // one-to-many desde equipo a partidos
        [Display(Name = "Fechas")]
        public virtual IList<Match> Matches { get; set; }

        public Team()
        {
            Tournaments = new List<Tournament>();
            Matches = new List<Match>();
        }
    }
}
